package com.gmail.dmitryustimov.ms.java7.visitor.mod_reflective.example.example2;


public class Demo {
    public static void main(String[] args) {

        CarElement car = new Car();
        Visitor doVisitor = new CarElementDoVisitor();
        Visitor printVisitor = new CarElementPrintVisitor();

        try {
            printVisitor.visit(car);
            doVisitor.visit(car);
        } catch (NoSuchMethodException e) {
            e.printStackTrace();
        }
    }
}
